package annotation;

public class Friut {
    public void info(){
        System.out.println("水果");
    }
    public static void main(String[] args) {
        Friut friut=new Friut();
        friut.info();
        Apple apple=new Apple();
        apple.info();
    }
}
class Apple extends Friut{
    @Override
    public void info(){
        System.out.println("重写后");
    }
}

